home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / AERegistry.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  34.4 KB  |  828 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AERegistry.a
  3. ;
  4. ;    Contains:    AppleEvents Registry Interface.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__AEREGISTRY__') = 'UNDEFINED' THEN
  19. __AEREGISTRY__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  25.     include 'Errors.a'
  26.     ENDIF
  27.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  28.     include 'AppleEvents.a'
  29.     ENDIF
  30.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  31.     include 'Quickdraw.a'
  32.     ENDIF
  33.     IF &TYPE('__KEYBOARD__') = 'UNDEFINED' THEN
  34.     include 'Keyboard.a'
  35.     ENDIF
  36.  
  37. cAEList                            EQU        'list'                ;  0x6c697374  
  38. cApplication                    EQU        'capp'                ;  0x63617070  
  39. cArc                            EQU        'carc'                ;  0x63617263  
  40. cBoolean                        EQU        'bool'                ;  0x626f6f6c  
  41. cCell                            EQU        'ccel'                ;  0x6363656c  
  42. cChar                            EQU        'cha '                ;  0x63686120  
  43. cColorTable                        EQU        'clrt'                ;  0x636c7274  
  44. cColumn                            EQU        'ccol'                ;  0x63636f6c  
  45. cDocument                        EQU        'docu'                ;  0x646f6375  
  46. cDrawingArea                    EQU        'cdrw'                ;  0x63647277  
  47. cEnumeration                    EQU        'enum'                ;  0x656e756d  
  48. cFile                            EQU        'file'                ;  0x66696c65  
  49. cFixed                            EQU        'fixd'                ;  0x66697864  
  50. cFixedPoint                        EQU        'fpnt'                ;  0x66706e74  
  51. cFixedRectangle                    EQU        'frct'                ;  0x66726374  
  52. cGraphicLine                    EQU        'glin'                ;  0x676c696e  
  53. cGraphicObject                    EQU        'cgob'                ;  0x63676f62  
  54. cGraphicShape                    EQU        'cgsh'                ;  0x63677368  
  55. cGraphicText                    EQU        'cgtx'                ;  0x63677478  
  56. cGroupedGraphic                    EQU        'cpic'                ;  0x63706963  
  57.  
  58. cInsertionLoc                    EQU        'insl'                ;  0x696e736c  
  59. cInsertionPoint                    EQU        'cins'                ;  0x63696e73  
  60. cIntlText                        EQU        'itxt'                ;  0x69747874  
  61. cIntlWritingCode                EQU        'intl'                ;  0x696e746c  
  62. cItem                            EQU        'citm'                ;  0x6369746d  
  63. cLine                            EQU        'clin'                ;  0x636c696e  
  64. cLongDateTime                    EQU        'ldt '                ;  0x6c647420  
  65. cLongFixed                        EQU        'lfxd'                ;  0x6c667864  
  66. cLongFixedPoint                    EQU        'lfpt'                ;  0x6c667074  
  67. cLongFixedRectangle                EQU        'lfrc'                ;  0x6c667263  
  68. cLongInteger                    EQU        'long'                ;  0x6c6f6e67  
  69. cLongPoint                        EQU        'lpnt'                ;  0x6c706e74  
  70. cLongRectangle                    EQU        'lrct'                ;  0x6c726374  
  71. cMachineLoc                        EQU        'mLoc'                ;  0x6d4c6f63  
  72. cMenu                            EQU        'cmnu'                ;  0x636d6e75  
  73. cMenuItem                        EQU        'cmen'                ;  0x636d656e  
  74. cObject                            EQU        'cobj'                ;  0x636f626a  
  75. cObjectSpecifier                EQU        'obj '                ;  0x6f626a20  
  76. cOpenableObject                    EQU        'coob'                ;  0x636f6f62  
  77. cOval                            EQU        'covl'                ;  0x636f766c  
  78.  
  79. cParagraph                        EQU        'cpar'                ;  0x63706172  
  80. cPICT                            EQU        'PICT'                ;  0x50494354  
  81. cPixel                            EQU        'cpxl'                ;  0x6370786c  
  82. cPixelMap                        EQU        'cpix'                ;  0x63706978  
  83. cPolygon                        EQU        'cpgn'                ;  0x6370676e  
  84. cProperty                        EQU        'prop'                ;  0x70726f70  
  85. cQDPoint                        EQU        'QDpt'                ;  0x51447074  
  86. cQDRectangle                    EQU        'qdrt'                ;  0x71647274  
  87. cRectangle                        EQU        'crec'                ;  0x63726563  
  88. cRGBColor                        EQU        'cRGB'                ;  0x63524742  
  89. cRotation                        EQU        'trot'                ;  0x74726f74  
  90. cRoundedRectangle                EQU        'crrc'                ;  0x63727263  
  91. cRow                            EQU        'crow'                ;  0x63726f77  
  92. cSelection                        EQU        'csel'                ;  0x6373656c  
  93. cShortInteger                    EQU        'shor'                ;  0x73686f72  
  94. cTable                            EQU        'ctbl'                ;  0x6374626c  
  95. cText                            EQU        'ctxt'                ;  0x63747874  
  96. cTextFlow                        EQU        'cflo'                ;  0x63666c6f  
  97. cTextStyles                        EQU        'tsty'                ;  0x74737479  
  98. cType                            EQU        'type'                ;  0x74797065  
  99.  
  100. cVersion                        EQU        'vers'                ;  0x76657273  
  101. cWindow                            EQU        'cwin'                ;  0x6377696e  
  102. cWord                            EQU        'cwor'                ;  0x63776f72  
  103. enumArrows                        EQU        'arro'                ;  0x6172726f  
  104. enumJustification                EQU        'just'                ;  0x6a757374  
  105. enumKeyForm                        EQU        'kfrm'                ;  0x6b66726d  
  106. enumPosition                    EQU        'posi'                ;  0x706f7369  
  107. enumProtection                    EQU        'prtn'                ;  0x7072746e  
  108. enumQuality                        EQU        'qual'                ;  0x7175616c  
  109. enumSaveOptions                    EQU        'savo'                ;  0x7361766f  
  110. enumStyle                        EQU        'styl'                ;  0x7374796c  
  111. enumTransferMode                EQU        'tran'                ;  0x7472616e  
  112. formUniqueID                    EQU        'ID  '                ;  0x49442020  
  113. kAEAbout                        EQU        'abou'                ;  0x61626f75  
  114. kAEAfter                        EQU        'afte'                ;  0x61667465  
  115. kAEAliasSelection                EQU        'sali'                ;  0x73616c69  
  116. kAEAllCaps                        EQU        'alcp'                ;  0x616c6370  
  117. kAEArrowAtEnd                    EQU        'aren'                ;  0x6172656e  
  118. kAEArrowAtStart                    EQU        'arst'                ;  0x61727374  
  119. kAEArrowBothEnds                EQU        'arbo'                ;  0x6172626f  
  120.  
  121. kAEAsk                            EQU        'ask '                ;  0x61736b20  
  122. kAEBefore                        EQU        'befo'                ;  0x6265666f  
  123. kAEBeginning                    EQU        'bgng'                ;  0x62676e67  
  124. kAEBeginsWith                    EQU        'bgwt'                ;  0x62677774  
  125. kAEBeginTransaction                EQU        'begi'                ;  0x62656769  
  126. kAEBold                            EQU        'bold'                ;  0x626f6c64  
  127. kAECaseSensEquals                EQU        'cseq'                ;  0x63736571  
  128. kAECentered                        EQU        'cent'                ;  0x63656e74  
  129. kAEChangeView                    EQU        'view'                ;  0x76696577  
  130. kAEClone                        EQU        'clon'                ;  0x636c6f6e  
  131. kAEClose                        EQU        'clos'                ;  0x636c6f73  
  132. kAECondensed                    EQU        'cond'                ;  0x636f6e64  
  133. kAEContains                        EQU        'cont'                ;  0x636f6e74  
  134. kAECopy                            EQU        'copy'                ;  0x636f7079  
  135. kAECoreSuite                    EQU        'core'                ;  0x636f7265  
  136. kAECountElements                EQU        'cnte'                ;  0x636e7465  
  137. kAECreateElement                EQU        'crel'                ;  0x6372656c  
  138. kAECreatePublisher                EQU        'cpub'                ;  0x63707562  
  139. kAECut                            EQU        'cut '                ;  0x63757420  
  140. kAEDelete                        EQU        'delo'                ;  0x64656c6f  
  141.  
  142. kAEDoObjectsExist                EQU        'doex'                ;  0x646f6578  
  143. kAEDoScript                        EQU        'dosc'                ;  0x646f7363  
  144. kAEDrag                            EQU        'drag'                ;  0x64726167  
  145. kAEDuplicateSelection            EQU        'sdup'                ;  0x73647570  
  146. kAEEditGraphic                    EQU        'edit'                ;  0x65646974  
  147. kAEEmptyTrash                    EQU        'empt'                ;  0x656d7074  
  148. kAEEnd                            EQU        'end '                ;  0x656e6420  
  149. kAEEndsWith                        EQU        'ends'                ;  0x656e6473  
  150. kAEEndTransaction                EQU        'endt'                ;  0x656e6474  
  151. kAEEquals                        EQU        '=   '                ;  0x3d202020  
  152. kAEExpanded                        EQU        'pexp'                ;  0x70657870  
  153. kAEFast                            EQU        'fast'                ;  0x66617374  
  154. kAEFinderEvents                    EQU        'FNDR'                ;  0x464e4452  
  155. kAEFormulaProtect                EQU        'fpro'                ;  0x6670726f  
  156. kAEFullyJustified                EQU        'full'                ;  0x66756c6c  
  157. kAEGetClassInfo                    EQU        'qobj'                ;  0x716f626a  
  158. kAEGetData                        EQU        'getd'                ;  0x67657464  
  159. kAEGetDataSize                    EQU        'dsiz'                ;  0x6473697a  
  160. kAEGetEventInfo                    EQU        'gtei'                ;  0x67746569  
  161. kAEGetInfoSelection                EQU        'sinf'                ;  0x73696e66  
  162.  
  163. kAEGetPrivilegeSelection        EQU        'sprv'                ;  0x73707276  
  164. kAEGetSuiteInfo                    EQU        'gtsi'                ;  0x67747369  
  165. kAEGreaterThan                    EQU        '>   '                ;  0x3e202020  
  166. kAEGreaterThanEquals            EQU        '>=  '                ;  0x3e3d2020  
  167. kAEGrow                            EQU        'grow'                ;  0x67726f77  
  168. kAEHidden                        EQU        'hidn'                ;  0x6869646e  
  169. kAEHiQuality                    EQU        'hiqu'                ;  0x68697175  
  170. kAEImageGraphic                    EQU        'imgr'                ;  0x696d6772  
  171. kAEIsUniform                    EQU        'isun'                ;  0x6973756e  
  172. kAEItalic                        EQU        'ital'                ;  0x6974616c  
  173. kAELeftJustified                EQU        'left'                ;  0x6c656674  
  174. kAELessThan                        EQU        '<   '                ;  0x3c202020  
  175. kAELessThanEquals                EQU        '<=  '                ;  0x3c3d2020  
  176. kAELowercase                    EQU        'lowc'                ;  0x6c6f7763  
  177. kAEMakeObjectsVisible            EQU        'mvis'                ;  0x6d766973  
  178. kAEMiscStandards                EQU        'misc'                ;  0x6d697363  
  179. kAEModifiable                    EQU        'modf'                ;  0x6d6f6466  
  180. kAEMove                            EQU        'move'                ;  0x6d6f7665  
  181. kAENo                            EQU        'no  '                ;  0x6e6f2020  
  182. kAENoArrow                        EQU        'arno'                ;  0x61726e6f  
  183.  
  184. kAENonmodifiable                EQU        'nmod'                ;  0x6e6d6f64  
  185. kAEOpen                            EQU        'odoc'                ;  0x6f646f63  
  186. kAEOpenSelection                EQU        'sope'                ;  0x736f7065  
  187. kAEOutline                        EQU        'outl'                ;  0x6f75746c  
  188. kAEPageSetup                    EQU        'pgsu'                ;  0x70677375  
  189. kAEPaste                        EQU        'past'                ;  0x70617374  
  190. kAEPlain                        EQU        'plan'                ;  0x706c616e  
  191. kAEPrint                        EQU        'pdoc'                ;  0x70646f63  
  192. kAEPrintSelection                EQU        'spri'                ;  0x73707269  
  193. kAEPrintWindow                    EQU        'pwin'                ;  0x7077696e  
  194. kAEPutAwaySelection                EQU        'sput'                ;  0x73707574  
  195. kAEQDAddOver                    EQU        'addo'                ;  0x6164646f  
  196. kAEQDAddPin                        EQU        'addp'                ;  0x61646470  
  197. kAEQDAdMax                        EQU        'admx'                ;  0x61646d78  
  198. kAEQDAdMin                        EQU        'admn'                ;  0x61646d6e  
  199. kAEQDBic                        EQU        'bic '                ;  0x62696320  
  200. kAEQDBlend                        EQU        'blnd'                ;  0x626c6e64  
  201. kAEQDCopy                        EQU        'cpy '                ;  0x63707920  
  202. kAEQDNotBic                        EQU        'nbic'                ;  0x6e626963  
  203. kAEQDNotCopy                    EQU        'ncpy'                ;  0x6e637079  
  204.  
  205. kAEQDNotOr                        EQU        'ntor'                ;  0x6e746f72  
  206. kAEQDNotXor                        EQU        'nxor'                ;  0x6e786f72  
  207. kAEQDOr                            EQU        'or  '                ;  0x6f722020  
  208. kAEQDSubOver                    EQU        'subo'                ;  0x7375626f  
  209. kAEQDSubPin                        EQU        'subp'                ;  0x73756270  
  210. kAEQDSupplementalSuite            EQU        'qdsp'                ;  0x71647370  
  211. kAEQDXor                        EQU        'xor '                ;  0x786f7220  
  212. kAEQuickdrawSuite                EQU        'qdrw'                ;  0x71647277  
  213. kAEQuitAll                        EQU        'quia'                ;  0x71756961  
  214. kAERedo                            EQU        'redo'                ;  0x7265646f  
  215. kAERegular                        EQU        'regl'                ;  0x7265676c  
  216. kAEReplace                        EQU        'rplc'                ;  0x72706c63  
  217. kAERequiredSuite                EQU        'reqd'                ;  0x72657164  
  218. kAERestart                        EQU        'rest'                ;  0x72657374  
  219. kAERevealSelection                EQU        'srev'                ;  0x73726576  
  220. kAERevert                        EQU        'rvrt'                ;  0x72767274  
  221. kAERightJustified                EQU        'rght'                ;  0x72676874  
  222. kAESave                            EQU        'save'                ;  0x73617665  
  223. kAESelect                        EQU        'slct'                ;  0x736c6374  
  224. kAESetData                        EQU        'setd'                ;  0x73657464  
  225.  
  226. kAESetPosition                    EQU        'posn'                ;  0x706f736e  
  227. kAEShadow                        EQU        'shad'                ;  0x73686164  
  228. kAEShowClipboard                EQU        'shcl'                ;  0x7368636c  
  229. kAEShutDown                        EQU        'shut'                ;  0x73687574  
  230. kAESleep                        EQU        'slep'                ;  0x736c6570  
  231. kAESmallCaps                    EQU        'smcp'                ;  0x736d6370  
  232. kAESpecialClassProperties        EQU        'c@#!'                ;  0x63402321  
  233. kAEStrikethrough                EQU        'strk'                ;  0x7374726b  
  234. kAESubscript                    EQU        'sbsc'                ;  0x73627363  
  235. kAESuperscript                    EQU        'spsc'                ;  0x73707363  
  236. kAETableSuite                    EQU        'tbls'                ;  0x74626c73  
  237. kAETextSuite                    EQU        'TEXT'                ;  0x54455854  
  238. kAETransactionTerminated        EQU        'ttrm'                ;  0x7474726d  
  239. kAEUnderline                    EQU        'undl'                ;  0x756e646c  
  240. kAEUndo                            EQU        'undo'                ;  0x756e646f  
  241. kAEWholeWordEquals                EQU        'wweq'                ;  0x77776571  
  242. kAEYes                            EQU        'yes '                ;  0x79657320  
  243. kAEZoom                            EQU        'zoom'                ;  0x7a6f6f6d  
  244. ;  EventRecord Classes and EventIDs 
  245.  
  246. kAEMouseClass                    EQU        'mous'
  247. kAEDown                            EQU        'down'
  248. kAEUp                            EQU        'up  '
  249. kAEMoved                        EQU        'move'
  250. kAEStoppedMoving                EQU        'stop'
  251. kAEWindowClass                    EQU        'wind'
  252. kAEUpdate                        EQU        'updt'
  253. kAEActivate                        EQU        'actv'
  254. kAEDeactivate                    EQU        'dact'
  255. kAECommandClass                    EQU        'cmnd'                ; Modern Command Event Class 
  256. kAEKeyClass                        EQU        'keyc'
  257. kAERawKey                        EQU        'rkey'                ; Modern Raw Key Event 
  258. kAEVirtualKey                    EQU        'keyc'                ; Modern Virtual Key Event 
  259. kAENavigationKey                EQU        'nave'                ; Modern Navigation Key Event 
  260. kAEAutoDown                        EQU        'auto'
  261. kAEApplicationClass                EQU        'appl'
  262. kAESuspend                        EQU        'susp'
  263. kAEResume                        EQU        'rsme'
  264. kAEDiskEvent                    EQU        'disk'
  265. kAENullEvent                    EQU        'null'
  266. kAEWakeUpEvent                    EQU        'wake'
  267. kAEScrapEvent                    EQU        'scrp'
  268. kAEHighLevel                    EQU        'high'
  269.  
  270. keyAEAngle                        EQU        'kang'                ;  0x6b616e67  
  271. keyAEArcAngle                    EQU        'parc'                ;  0x70617263  
  272.  
  273. keyAEBaseAddr                    EQU        'badd'                ;  0x62616464  
  274. keyAEBestType                    EQU        'pbst'                ;  0x70627374  
  275. keyAEBgndColor                    EQU        'kbcl'                ;  0x6b62636c  
  276. keyAEBgndPattern                EQU        'kbpt'                ;  0x6b627074  
  277. keyAEBounds                        EQU        'pbnd'                ;  0x70626e64  
  278. keyAECellList                    EQU        'kclt'                ;  0x6b636c74  
  279. keyAEClassID                    EQU        'clID'                ;  0x636c4944  
  280. keyAEColor                        EQU        'colr'                ;  0x636f6c72  
  281. keyAEColorTable                    EQU        'cltb'                ;  0x636c7462  
  282. keyAECurveHeight                EQU        'kchd'                ;  0x6b636864  
  283. keyAECurveWidth                    EQU        'kcwd'                ;  0x6b637764  
  284. keyAEDashStyle                    EQU        'pdst'                ;  0x70647374  
  285. keyAEData                        EQU        'data'                ;  0x64617461  
  286. keyAEDefaultType                EQU        'deft'                ;  0x64656674  
  287. keyAEDefinitionRect                EQU        'pdrt'                ;  0x70647274  
  288. keyAEDescType                    EQU        'dstp'                ;  0x64737470  
  289. keyAEDestination                EQU        'dest'                ;  0x64657374  
  290. keyAEDoAntiAlias                EQU        'anta'                ;  0x616e7461  
  291. keyAEDoDithered                    EQU        'gdit'                ;  0x67646974  
  292. keyAEDoRotate                    EQU        'kdrt'                ;  0x6b647274  
  293.  
  294. keyAEDoScale                    EQU        'ksca'                ;  0x6b736361  
  295. keyAEDoTranslate                EQU        'ktra'                ;  0x6b747261  
  296. keyAEEditionFileLoc                EQU        'eloc'                ;  0x656c6f63  
  297. keyAEElements                    EQU        'elms'                ;  0x656c6d73  
  298. keyAEEndPoint                    EQU        'pend'                ;  0x70656e64  
  299. keyAEEventClass                    EQU        'evcl'                ;  0x6576636c  
  300. keyAEEventID                    EQU        'evti'                ;  0x65767469  
  301. keyAEFile                        EQU        'kfil'                ;  0x6b66696c  
  302. keyAEFileType                    EQU        'fltp'                ;  0x666c7470  
  303. keyAEFillColor                    EQU        'flcl'                ;  0x666c636c  
  304. keyAEFillPattern                EQU        'flpt'                ;  0x666c7074  
  305. keyAEFlipHorizontal                EQU        'kfho'                ;  0x6b66686f  
  306. keyAEFlipVertical                EQU        'kfvt'                ;  0x6b667674  
  307. keyAEFont                        EQU        'font'                ;  0x666f6e74  
  308. keyAEFormula                    EQU        'pfor'                ;  0x70666f72  
  309. keyAEGraphicObjects                EQU        'gobs'                ;  0x676f6273  
  310. keyAEID                            EQU        'ID  '                ;  0x49442020  
  311. keyAEImageQuality                EQU        'gqua'                ;  0x67717561  
  312. keyAEInsertHere                    EQU        'insh'                ;  0x696e7368  
  313. keyAEKeyForms                    EQU        'keyf'                ;  0x6b657966  
  314.  
  315. keyAEKeyword                    EQU        'kywd'                ;  0x6b797764  
  316. keyAELevel                        EQU        'levl'                ;  0x6c65766c  
  317. keyAELineArrow                    EQU        'arro'                ;  0x6172726f  
  318. keyAEName                        EQU        'pnam'                ;  0x706e616d  
  319. keyAENewElementLoc                EQU        'pnel'                ;  0x706e656c  
  320. keyAEObject                        EQU        'kobj'                ;  0x6b6f626a  
  321. keyAEObjectClass                EQU        'kocl'                ;  0x6b6f636c  
  322. keyAEOffStyles                    EQU        'ofst'                ;  0x6f667374  
  323. keyAEOnStyles                    EQU        'onst'                ;  0x6f6e7374  
  324. keyAEParameters                    EQU        'prms'                ;  0x70726d73  
  325. keyAEParamFlags                    EQU        'pmfg'                ;  0x706d6667  
  326. keyAEPenColor                    EQU        'ppcl'                ;  0x7070636c  
  327. keyAEPenPattern                    EQU        'pppa'                ;  0x70707061  
  328. keyAEPenWidth                    EQU        'ppwd'                ;  0x70707764  
  329. keyAEPixelDepth                    EQU        'pdpt'                ;  0x70647074  
  330. keyAEPixMapMinus                EQU        'kpmm'                ;  0x6b706d6d  
  331. keyAEPMTable                    EQU        'kpmt'                ;  0x6b706d74  
  332. keyAEPointList                    EQU        'ptlt'                ;  0x70746c74  
  333. keyAEPointSize                    EQU        'ptsz'                ;  0x7074737a  
  334. keyAEPosition                    EQU        'kpos'                ;  0x6b706f73  
  335.  
  336. keyAEPropData                    EQU        'prdt'                ;  0x70726474  
  337. keyAEProperties                    EQU        'qpro'                ;  0x7170726f  
  338. keyAEProperty                    EQU        'kprp'                ;  0x6b707270  
  339. keyAEPropFlags                    EQU        'prfg'                ;  0x70726667  
  340. keyAEPropID                        EQU        'prop'                ;  0x70726f70  
  341. keyAEProtection                    EQU        'ppro'                ;  0x7070726f  
  342. keyAERenderAs                    EQU        'kren'                ;  0x6b72656e  
  343. keyAERequestedType                EQU        'rtyp'                ;  0x72747970  
  344. keyAEResult                        EQU        '----'                ;  0x2d2d2d2d  
  345. keyAEResultInfo                    EQU        'rsin'                ;  0x7273696e  
  346. keyAERotation                    EQU        'prot'                ;  0x70726f74  
  347. keyAERotPoint                    EQU        'krtp'                ;  0x6b727470  
  348. keyAERowList                    EQU        'krls'                ;  0x6b726c73  
  349. keyAESaveOptions                EQU        'savo'                ;  0x7361766f  
  350. keyAEScale                        EQU        'pscl'                ;  0x7073636c  
  351. keyAEScriptTag                    EQU        'psct'                ;  0x70736374  
  352. keyAEShowWhere                    EQU        'show'                ;  0x73686f77  
  353. keyAEStartAngle                    EQU        'pang'                ;  0x70616e67  
  354. keyAEStartPoint                    EQU        'pstp'                ;  0x70737470  
  355. keyAEStyles                        EQU        'ksty'                ;  0x6b737479  
  356.  
  357. keyAESuiteID                    EQU        'suit'                ;  0x73756974  
  358. keyAEText                        EQU        'ktxt'                ;  0x6b747874  
  359. keyAETextColor                    EQU        'ptxc'                ;  0x70747863  
  360. keyAETextFont                    EQU        'ptxf'                ;  0x70747866  
  361. keyAETextPointSize                EQU        'ptps'                ;  0x70747073  
  362. keyAETextStyles                    EQU        'txst'                ;  0x74787374  
  363. keyAETextLineHeight                EQU        'ktlh'                ; type ShortInteger 
  364. keyAETextLineAscent                EQU        'ktas'                ; type ShortInteger 
  365. keyAETheText                    EQU        'thtx'                ;  0x74687478  
  366. keyAETransferMode                EQU        'pptm'                ;  0x7070746d  
  367. keyAETranslation                EQU        'ptrs'                ;  0x70747273  
  368. keyAETryAsStructGraf            EQU        'toog'                ;  0x746f6f67  
  369. keyAEUniformStyles                EQU        'ustl'                ;  0x7573746c  
  370. keyAEUpdateOn                    EQU        'pupd'                ;  0x70757064  
  371. keyAEUserTerm                    EQU        'utrm'                ;  0x7574726d  
  372. keyAEWindow                        EQU        'wndw'                ;  0x776e6477  
  373. keyAEWritingCode                EQU        'wrcd'                ;  0x77726364  
  374.  
  375. keyMiscellaneous                EQU        'fmsc'                ;  0x666d7363  
  376. keySelection                    EQU        'fsel'                ;  0x6673656c  
  377. keyWindow                        EQU        'kwnd'                ;  0x6b776e64  
  378.                                                             ; EventRecord keys 
  379. keyWhen                            EQU        'when'
  380. keyWhere                        EQU        'wher'
  381. keyModifiers                    EQU        'mods'
  382. keyKey                            EQU        'key '
  383. keyKeyCode                        EQU        'code'
  384. keyKeyboard                        EQU        'keyb'
  385. keyDriveNumber                    EQU        'drv#'
  386. keyErrorCode                    EQU        'err#'
  387. keyHighLevelClass                EQU        'hcls'
  388. keyHighLevelID                    EQU        'hid '
  389.  
  390. pArcAngle                        EQU        'parc'                ;  0x70617263  
  391. pBackgroundColor                EQU        'pbcl'                ;  0x7062636c  
  392. pBackgroundPattern                EQU        'pbpt'                ;  0x70627074  
  393. pBestType                        EQU        'pbst'                ;  0x70627374  
  394. pBounds                            EQU        'pbnd'                ;  0x70626e64  
  395. pClass                            EQU        'pcls'                ;  0x70636c73  
  396. pClipboard                        EQU        'pcli'                ;  0x70636c69  
  397. pColor                            EQU        'colr'                ;  0x636f6c72  
  398. pColorTable                        EQU        'cltb'                ;  0x636c7462  
  399. pContents                        EQU        'pcnt'                ;  0x70636e74  
  400. pCornerCurveHeight                EQU        'pchd'                ;  0x70636864  
  401. pCornerCurveWidth                EQU        'pcwd'                ;  0x70637764  
  402. pDashStyle                        EQU        'pdst'                ;  0x70647374  
  403. pDefaultType                    EQU        'deft'                ;  0x64656674  
  404. pDefinitionRect                    EQU        'pdrt'                ;  0x70647274  
  405. pEnabled                        EQU        'enbl'                ;  0x656e626c  
  406. pEndPoint                        EQU        'pend'                ;  0x70656e64  
  407. pFillColor                        EQU        'flcl'                ;  0x666c636c  
  408. pFillPattern                    EQU        'flpt'                ;  0x666c7074  
  409. pFont                            EQU        'font'                ;  0x666f6e74  
  410.  
  411. pFormula                        EQU        'pfor'                ;  0x70666f72  
  412. pGraphicObjects                    EQU        'gobs'                ;  0x676f6273  
  413. pHasCloseBox                    EQU        'hclb'                ;  0x68636c62  
  414. pHasTitleBar                    EQU        'ptit'                ;  0x70746974  
  415. pID                                EQU        'ID  '                ;  0x49442020  
  416. pIndex                            EQU        'pidx'                ;  0x70696478  
  417. pInsertionLoc                    EQU        'pins'                ;  0x70696e73  
  418. pIsFloating                        EQU        'isfl'                ;  0x6973666c  
  419. pIsFrontProcess                    EQU        'pisf'                ;  0x70697366  
  420. pIsModal                        EQU        'pmod'                ;  0x706d6f64  
  421. pIsModified                        EQU        'imod'                ;  0x696d6f64  
  422. pIsResizable                    EQU        'prsz'                ;  0x7072737a  
  423. pIsStationeryPad                EQU        'pspd'                ;  0x70737064  
  424. pIsZoomable                        EQU        'iszm'                ;  0x69737a6d  
  425. pIsZoomed                        EQU        'pzum'                ;  0x707a756d  
  426. pItemNumber                        EQU        'itmn'                ;  0x69746d6e  
  427. pJustification                    EQU        'pjst'                ;  0x706a7374  
  428. pLineArrow                        EQU        'arro'                ;  0x6172726f  
  429. pMenuID                            EQU        'mnid'                ;  0x6d6e6964  
  430. pName                            EQU        'pnam'                ;  0x706e616d  
  431.  
  432. pNewElementLoc                    EQU        'pnel'                ;  0x706e656c  
  433. pPenColor                        EQU        'ppcl'                ;  0x7070636c  
  434. pPenPattern                        EQU        'pppa'                ;  0x70707061  
  435. pPenWidth                        EQU        'ppwd'                ;  0x70707764  
  436. pPixelDepth                        EQU        'pdpt'                ;  0x70647074  
  437. pPointList                        EQU        'ptlt'                ;  0x70746c74  
  438. pPointSize                        EQU        'ptsz'                ;  0x7074737a  
  439. pProtection                        EQU        'ppro'                ;  0x7070726f  
  440. pRotation                        EQU        'prot'                ;  0x70726f74  
  441. pScale                            EQU        'pscl'                ;  0x7073636c  
  442. pScript                            EQU        'scpt'                ;  0x73637074  
  443. pScriptTag                        EQU        'psct'                ;  0x70736374  
  444. pSelected                        EQU        'selc'                ;  0x73656c63  
  445. pSelection                        EQU        'sele'                ;  0x73656c65  
  446. pStartAngle                        EQU        'pang'                ;  0x70616e67  
  447. pStartPoint                        EQU        'pstp'                ;  0x70737470  
  448. pTextColor                        EQU        'ptxc'                ;  0x70747863  
  449. pTextFont                        EQU        'ptxf'                ;  0x70747866  
  450. pTextItemDelimiters                EQU        'txdl'                ;  0x7478646c  
  451. pTextPointSize                    EQU        'ptps'                ;  0x70747073  
  452.  
  453. pTextStyles                        EQU        'txst'                ;  0x74787374  
  454. pTransferMode                    EQU        'pptm'                ;  0x7070746d  
  455. pTranslation                    EQU        'ptrs'                ;  0x70747273  
  456. pUniformStyles                    EQU        'ustl'                ;  0x7573746c  
  457. pUpdateOn                        EQU        'pupd'                ;  0x70757064  
  458. pUserSelection                    EQU        'pusl'                ;  0x7075736c  
  459. pVersion                        EQU        'vers'                ;  0x76657273  
  460. pVisible                        EQU        'pvis'                ;  0x70766973  
  461.  
  462. typeAEText                        EQU        'tTXT'                ;  0x74545854  
  463. typeArc                            EQU        'carc'                ;  0x63617263  
  464. typeBest                        EQU        'best'                ;  0x62657374  
  465. typeCell                        EQU        'ccel'                ;  0x6363656c  
  466. typeClassInfo                    EQU        'gcli'                ;  0x67636c69  
  467. typeColorTable                    EQU        'clrt'                ;  0x636c7274  
  468. typeColumn                        EQU        'ccol'                ;  0x63636f6c  
  469. typeDashStyle                    EQU        'tdas'                ;  0x74646173  
  470. typeData                        EQU        'tdta'                ;  0x74647461  
  471. typeDrawingArea                    EQU        'cdrw'                ;  0x63647277  
  472. typeElemInfo                    EQU        'elin'                ;  0x656c696e  
  473. typeEnumeration                    EQU        'enum'                ;  0x656e756d  
  474. typeEPS                            EQU        'EPS '                ;  0x45505320  
  475. typeEventInfo                    EQU        'evin'                ;  0x6576696e  
  476.  
  477. typeFinderWindow                EQU        'fwin'                ;  0x6677696e  
  478. typeFixedPoint                    EQU        'fpnt'                ;  0x66706e74  
  479. typeFixedRectangle                EQU        'frct'                ;  0x66726374  
  480. typeGraphicLine                    EQU        'glin'                ;  0x676c696e  
  481. typeGraphicText                    EQU        'cgtx'                ;  0x63677478  
  482. typeGroupedGraphic                EQU        'cpic'                ;  0x63706963  
  483. typeInsertionLoc                EQU        'insl'                ;  0x696e736c  
  484. typeIntlText                    EQU        'itxt'                ;  0x69747874  
  485. typeIntlWritingCode                EQU        'intl'                ;  0x696e746c  
  486. typeLongDateTime                EQU        'ldt '                ;  0x6c647420  
  487. typeLongFixed                    EQU        'lfxd'                ;  0x6c667864  
  488. typeLongFixedPoint                EQU        'lfpt'                ;  0x6c667074  
  489. typeLongFixedRectangle            EQU        'lfrc'                ;  0x6c667263  
  490. typeLongPoint                    EQU        'lpnt'                ;  0x6c706e74  
  491. typeLongRectangle                EQU        'lrct'                ;  0x6c726374  
  492. typeMachineLoc                    EQU        'mLoc'                ;  0x6d4c6f63  
  493. typeOval                        EQU        'covl'                ;  0x636f766c  
  494. typeParamInfo                    EQU        'pmin'                ;  0x706d696e  
  495. typePict                        EQU        'PICT'                ;  0x50494354  
  496.  
  497. typePixelMap                    EQU        'cpix'                ;  0x63706978  
  498. typePixMapMinus                    EQU        'tpmm'                ;  0x74706d6d  
  499. typePolygon                        EQU        'cpgn'                ;  0x6370676e  
  500. typePropInfo                    EQU        'pinf'                ;  0x70696e66  
  501. typeQDPoint                        EQU        'QDpt'                ;  0x51447074  
  502. typeRectangle                    EQU        'crec'                ;  0x63726563  
  503. typeRGB16                        EQU        'tr16'                ;  0x74723136  
  504. typeRGB96                        EQU        'tr96'                ;  0x74723936  
  505. typeRGBColor                    EQU        'cRGB'                ;  0x63524742  
  506. typeRotation                    EQU        'trot'                ;  0x74726f74  
  507. typeRoundedRectangle            EQU        'crrc'                ;  0x63727263  
  508. typeRow                            EQU        'crow'                ;  0x63726f77  
  509. typeScrapStyles                    EQU        'styl'                ;  0x7374796c  
  510. typeScript                        EQU        'scpt'                ;  0x73637074  
  511. typeStyledText                    EQU        'STXT'                ;  0x53545854  
  512. typeSuiteInfo                    EQU        'suin'                ;  0x7375696e  
  513. typeTable                        EQU        'ctbl'                ;  0x6374626c  
  514. typeTextStyles                    EQU        'tsty'                ;  0x74737479  
  515.  
  516. typeTIFF                        EQU        'TIFF'                ;  0x54494646  
  517. typeVersion                        EQU        'vers'                ;  0x76657273  
  518.  
  519. kAEMenuClass                    EQU        'menu'
  520. kAEMenuSelect                    EQU        'mhit'
  521. kAEMouseDown                    EQU        'mdwn'
  522. kAEMouseDownInBack                EQU        'mdbk'
  523. kAEKeyDown                        EQU        'kdwn'
  524. kAEResized                        EQU        'rsiz'
  525. kAEPromise                        EQU        'prom'
  526.  
  527. keyMenuID                        EQU        'mid '
  528. keyMenuItem                        EQU        'mitm'
  529. keyCloseAllWindows                EQU        'caw '
  530. keyOriginalBounds                EQU        'obnd'
  531. keyNewBounds                    EQU        'nbnd'
  532. keyLocalWhere                    EQU        'lwhr'
  533.  
  534. typeHIMenu                        EQU        'mobj'
  535. typeHIWindow                    EQU        'wobj'
  536.     IF FOR_SYSTEM8_COOPERATIVE THEN
  537.  
  538.                                                             ; Scrap class
  539. kAEScrapClass                    EQU        'scrp'                ; Scrap promise event id
  540. kAEScrapPromise                    EQU        'prom'                ; Scrap data types
  541. typeScrapRef                    EQU        'sref'
  542. typeScrapItemRef                EQU        'ssir'
  543. typeScrapItemType                EQU        'ssit'
  544. typeUserPromiseHint                EQU        'suph'
  545.  
  546.                                                             ; Clipboard class
  547. kAEClipboardClass                EQU        'clip'                ; Clipobard changed event id
  548. kAEClipboardChanged                EQU        'chng'                ; Clipboard data types
  549. typeClipboardTypesBuffer        EQU        'type'                ; Clipboard disposed id (includes a typeScrapRef)
  550. kAEClipboardDisposed            EQU        'disp'
  551.  
  552.                                                             ; Drag class
  553. kAEDragClass                    EQU        'drag'                ; Tracking event id's
  554. kAEDragEnteredApplication        EQU        'dtea'
  555. kAEDragLeftApplication            EQU        'dtla'
  556. kAEDragMovedInWindow            EQU        'dtmw'
  557. kAEDragEnteredWindow            EQU        'dtew'
  558. kAEDragLeftWindow                EQU        'dtlw'                ; Tracking events containg the following keyDirectObject's:
  559.                                                             ; typeScrapRef
  560.                                                             ; typeHIWindow
  561.                                                             ; Receive event id
  562. kAEDragReceived                    EQU        'recv'                ; Receive event contains the following keyDirectObject's:
  563.                                                             ; typeScrapRef
  564.                                                             ; typeHIWindow
  565. kAEDragDrawBegin                EQU        'drdb'
  566. kAEDragDraw                        EQU        'drdw'
  567. kAEDragDrawHide                    EQU        'drdh'
  568. kAEDragDrawEnd                    EQU        'drde'                ; Drag draw event contains the following keyDirectObject:
  569.                                                             ; typeScrapRef
  570. typeDragShowRgn                    EQU        'srgn'
  571. typeDragShowOrigin                EQU        'sorg'
  572. typeDragHideRgn                    EQU        'hrgn'
  573. typeDragHideOrigin                EQU        'horg'
  574.     ENDIF
  575.  
  576. kBySmallIcon                    EQU        0
  577. kByIconView                        EQU        1
  578. kByNameView                        EQU        2
  579. kByDateView                        EQU        3
  580. kBySizeView                        EQU        4
  581. kByKindView                        EQU        5
  582. kByCommentView                    EQU        6
  583. kByLabelView                    EQU        7
  584. kByVersionView                    EQU        8
  585.  
  586. kAEInfo                            EQU        11
  587. kAEMain                            EQU        0
  588. kAESharing                        EQU        13
  589.  
  590. kAEZoomIn                        EQU        7
  591. kAEZoomOut                        EQU        8
  592.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  593.  
  594. kTextServiceClass                EQU        'tsvc'
  595. kUpdateActiveInputArea            EQU        'updt'                ; update the active input area 
  596. kShowHideInputWindow            EQU        'shiw'                ; show or hide the input window 
  597. kPos2Offset                        EQU        'p2st'                ; converting global coordinates to char position 
  598. kOffset2Pos                        EQU        'st2p'                ; converting char position to global coordinates 
  599. keyAETSMDocumentRefcon            EQU        'refc'                ; TSM document refcon, typeLongInteger 
  600. keyAEServerInstance                EQU        'srvi'                ; component instance 
  601. keyAETheData                    EQU        'kdat'                ; typeText 
  602. keyAEFixLength                    EQU        'fixl'                ; fix len ?? 
  603. keyAEUpdateRange                EQU        'udng'                ; typeTextRangeArray 
  604. keyAECurrentPoint                EQU        'cpos'                ; current point 
  605. keyAEBufferSize                    EQU        'buff'                ; buffer size to get the text 
  606. keyAEMoveView                    EQU        'mvvw'                ; move view flag 
  607. keyAENextBody                    EQU        'nxbd'                ; next or previous body 
  608. keyAETSMScriptTag                EQU        'sclg'
  609. keyAETSMTextFont                EQU        'ktxf'
  610. keyAETSMTextPointSize            EQU        'ktps'
  611. typeTextRange                    EQU        'txrn'                ; TextRange 
  612. typeComponentInstance            EQU        'cmpi'                ; server instance 
  613. typeOffsetArray                    EQU        'ofay'                ; offset array 
  614. typeTextRangeArray                EQU        'tray'
  615. typeText                        EQU        'TEXT'                ; Plain text 
  616. ;  Desc type constants 
  617.  
  618. kTSMOutsideOfBody                EQU        1
  619. kTSMInsideOfBody                EQU        2
  620. kTSMInsideOfActiveInputArea        EQU        3
  621.  
  622. kNextBody                        EQU        1
  623. kPreviousBody                    EQU        2
  624. TextRange                RECORD 0
  625. fStart                     ds.l    1                ; offset: $0 (0)
  626. fEnd                     ds.l    1                ; offset: $4 (4)
  627. fHiliteStyle             ds.w    1                ; offset: $8 (8)
  628. sizeof                     EQU *                    ; size:   $A (10)
  629.                         ENDR
  630. ; typedef struct TextRange *            TextRangePtr
  631.  
  632. ; typedef TextRangePtr *                TextRangeHandle
  633.  
  634. TextRangeArray            RECORD 0
  635. fNumOfRanges             ds.w    1                ; offset: $0 (0)        ;  specify the size of the fRange array 
  636. fRange                     ds        TextRange        ; offset: $2 (2) <-- really an array of length one ;  when fNumOfRanges > 1, the size of this array has to be calculated 
  637. sizeof                     EQU *                    ; size:   $C (12)
  638.                         ENDR
  639. ; typedef struct TextRangeArray *        TextRangeArrayPtr
  640.  
  641. ; typedef TextRangeArrayPtr *            TextRangeArrayHandle
  642.  
  643. OffsetArray                RECORD 0
  644. fNumOfOffsets             ds.w    1                ; offset: $0 (0)        ;  specify the size of the fOffset array 
  645. fOffset                     ds.l    1                ; offset: $2 (2) <-- really an array of length one ;  when fNumOfOffsets > 1, the size of this array has to be calculated 
  646. sizeof                     EQU *                    ; size:   $6 (6)
  647.                         ENDR
  648. ; typedef struct OffsetArray *            OffsetArrayPtr
  649.  
  650. ; typedef OffsetArrayPtr *                OffsetArrayHandle
  651.  
  652. WritingCode                RECORD 0
  653. theScriptCode             ds.w    1                ; offset: $0 (0)
  654. theLangCode                 ds.w    1                ; offset: $2 (2)
  655. sizeof                     EQU *                    ; size:   $4 (4)
  656.                         ENDR
  657. IntlText                RECORD 0
  658. theScriptCode             ds.w    1                ; offset: $0 (0)
  659. theLangCode                 ds.w    1                ; offset: $2 (2)
  660. theText                     ds.b    1                ; offset: $4 (4) <-- really an array of length one ;  variable length data 
  661.                          ORG 6
  662. sizeof                     EQU *                    ; size:   $6 (6)
  663.                         ENDR
  664.     ENDIF
  665.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  666. ;  Hilite styles 
  667.  
  668. kCaretPosition                    EQU        1                    ; specify caret position 
  669. kRawText                        EQU        2                    ; specify range of raw text 
  670. kSelectedRawText                EQU        3                    ; specify range of selected raw text 
  671. kConvertedText                    EQU        4                    ; specify range of converted text 
  672. kSelectedConvertedText            EQU        5                    ; specify range of selected converted text 
  673. kBlockFillText                    EQU        6                    ; Block Fill hilite style 
  674. kOutlineText                    EQU        7                    ; Outline hilite style 
  675. kSelectedText                    EQU        8                    ; Selected hilite style 
  676.  
  677. keyAEHiliteRange                EQU        'hrng'                ; typeTextRangeArray for System 7, typeHiliteRangeArray for System 8    
  678. keyAEPinRange                    EQU        'pnrg'                ; typeTextRange for System 7, typeTextRegionRange for System 8    
  679. keyAEClauseOffsets                EQU        'clau'                ; typeOffsetArray for System 7, typeClauseOffsetArray for System 8 
  680. keyAEOffset                        EQU        'ofst'                ; typeLongInteger for System 7, typeByteOffset for System 8    
  681. keyAEPoint                        EQU        'gpos'                ; typePoint for System 7, typeQDPoint for System 8 
  682. keyAELeftSide                    EQU        'klef'                ; typeBoolean 
  683. keyAERegionClass                EQU        'rgnc'                ; typeShortInteger for System 7, typeRegionClass for System 8 
  684. keyAEDragging                    EQU        'bool'                ; typeBoolean 
  685.     ENDIF
  686.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  687.     ENDIF
  688.     IF FOR_SYSTEM8_COOPERATIVE THEN
  689. ;
  690. ; This is the Modern Text Event suite, it defines all the attributes for TextEvent, 
  691. ; RawKeyEvents, CommandEvents, NavigationEvents, and VirtualKeyEvents. 
  692. ; What's missing: Duplicates need to be resolved with other parts of the ModernEvents in this 
  693. ; file! Tague needs to add the data for the Key,Command, and Navigation events.
  694. ;
  695.  
  696. kAETextEventClass                EQU        'tevn'                ; Modern Text Event Class 
  697. kSystem7TextServiceClass        EQU        'tsvc'                ; System7 TSM Event Class 
  698. kAEUpdateActiveInputArea        EQU        'updt'                ; update the active input area 
  699. kAEPosToOffset                    EQU        'p2st'                ; converting global coordinates to char position 
  700. kAEOffsetToPos                    EQU        'st2p'                ; converting char position to global coordinates 
  701. kAEGetInputAreaRegion            EQU        'greg'                ; Get input area 
  702. kAEShowHideInputWindow            EQU        'shiw'                ; show or hide the input window 
  703. kAEInputModeChanged                EQU        'imcg'                ; Input Method Mode Changed 
  704. keyAETextEventText                EQU        'ktex'                ; typeTextObject 
  705. keyAETextInputObject            EQU        'ktio'                ; typeTextInputObject 
  706. keyAEFixedLength                EQU        'fixl'                ; typeLongInteger  
  707. keyAEReplaceRange                EQU        'udng'                ; typeReplaceRangeArray 
  708. keyAEGetRegionRange                EQU        'grgn'                ; typeGetRange 
  709. keyAETextLineInfo                EQU        'tlin'                ; typeTextLineInfo 
  710. keyAEContext                    EQU        'tsmc'                ; typeTSMContext 
  711. keyAEInlineOwner                EQU        'inow'                ; typeTSMContext 
  712. keyAEInlineID                    EQU        'inid'                ; typeLongInteger 
  713. keyAEIsLeftSide                    EQU        'klef'                ; typeBoolean 
  714. keyAEIsDragging                    EQU        'bool'                ; typeBoolean 
  715. keyAELength                        EQU        'leng'                ; typeByteCount 
  716. keyAEShowHideInputWindow        EQU        'shiw'                ; typeBoolean 
  717. typeGetRange                    EQU        'getr'                ; GetRegionRange 
  718. typeTextRegionRange                EQU        'trrn'                ; TextRegionRange 
  719. typeReplaceRangeArray            EQU        'tray'                ; ReplaceRangeArray 
  720. typeHiliteRangeArray            EQU        'hray'                ; HiliteRangeArray 
  721. typeClauseOffsetArray            EQU        'cofa'                ; ClauseOffsetArray 
  722. typeTextLineInfo                EQU        'tinf'                ; TextLineInfo 
  723. typeTextObject                    EQU        'txto'                ; TextObject 
  724. typeTextInputObject                EQU        'tior'                ; TextInputObject 
  725. typeTSMContext                    EQU        'tctx'                ; TSMContext 
  726. typeRegionClass                    EQU        'rgnc'                ; RegionClass/GetRegionClass 
  727. typeByteOffset                    EQU        'byto'                ; ByteOffset 
  728. typeByteCount                    EQU        'bytc'                ; ByteCount 
  729. ; typedef SInt32                         HiliteStyle
  730.  
  731. ;  Pos to offset results 
  732.  
  733. kOutsideOfBody                    EQU        1
  734. kInsideOfBody                    EQU        2
  735. kInsideOfActiveInputArea        EQU        3
  736. ; typedef OptionBits                     RegionClass
  737.  
  738. ;  Get Region Actions 
  739.  
  740. kCurrentWord                    EQU        0                    ; Return the current word 
  741. kCurrentSelection                EQU        1                    ; Return the current selection 
  742. kCurrentRegion                    EQU        2                    ; Return the region supplied by the caller 
  743. kCurrentParagraph                EQU        3                    ; Return the region supplied by the caller 
  744. kCurrentInlineHole                EQU        4                    ; Returns the current inline-hole 
  745. kOpenNewInlineHole                EQU        5                    ; Creates a new inline-hole 
  746. kGetInsertPosition                EQU        6                    ; Get the Insert Point 
  747. kGetInlineHole                    EQU        7                    ; Get a specified inline hole 
  748. kNextInlineHole                    EQU        8                    ; Get the next inline hole 
  749. ; typedef OptionBits                     GetRegionClass
  750.  
  751. ;  Hilite Range information 
  752. HiliteRange                RECORD 0
  753. fStart                     ds.l    1                ; offset: $0 (0)
  754. fEnd                     ds.l    1                ; offset: $4 (4)
  755. fHiliteStyle             ds.l    1                ; offset: $8 (8)
  756. fColor                     ds        RGBColor        ; offset: $C (12)
  757. fPenSize                 ds        Point            ; offset: $12 (18)
  758. sizeof                     EQU *                    ; size:   $16 (22)
  759.                         ENDR
  760. ; typedef struct HiliteRange *            HiliteRangePtr
  761.  
  762. HiliteRangeArray        RECORD 0
  763. fNumOfRanges             ds.l    1                ; offset: $0 (0)        ;  specify the size of the fRange array 
  764. fRange                     ds        HiliteRange        ; offset: $4 (4) <-- really an array of length one ;  when fNumOfRanges > 1, the size of this array has to be calculated 
  765. sizeof                     EQU *                    ; size:   $1A (26)
  766.                         ENDR
  767. ; typedef struct HiliteRangeArray *        HiliteRangeArrayPtr
  768.  
  769. ;  Text Line specification 
  770. TextLineInfo            RECORD 0
  771. fLeadingBasePt             ds        Point            ; offset: $0 (0)        ;  Current Cursor Point     
  772. fFontID                     ds.w    1                ; offset: $4 (4)        ;  Texts Font ID             
  773. fPointSize                 ds.w    1                ; offset: $6 (6)        ;  Point Size of text         
  774. fLineHeight                 ds.w    1                ; offset: $8 (8)        ;  Line height of text         
  775. fLineAscent                 ds.w    1                ; offset: $A (10)        ;  Line Ascent of text         
  776. fLineAngle                 ds.w    1                ; offset: $C (12)        ;  Angle of Text             
  777. fFgColor                 ds        RGBColor        ; offset: $E (14)        ;  ForeGround color         
  778. fBkColor                 ds        RGBColor        ; offset: $14 (20)        ;  ForeGround color         
  779. sizeof                     EQU *                    ; size:   $1A (26)
  780.                         ENDR
  781. ; typedef struct TextLineInfo *            TextLineInfoPtr
  782.  
  783. ;  Text Range specification 
  784. TextRegionRange            RECORD 0
  785. fStart                     ds.l    1                ; offset: $0 (0)
  786. fEnd                     ds.l    1                ; offset: $4 (4)
  787. sizeof                     EQU *                    ; size:   $8 (8)
  788.                         ENDR
  789. ; typedef struct TextRegionRange *        TextRegionRangePtr
  790.  
  791. ;  Replace Range specification 
  792. ReplaceRange            RECORD 0
  793. fOldStart                 ds.l    1                ; offset: $0 (0)
  794. fOldEnd                     ds.l    1                ; offset: $4 (4)
  795. fNewStart                 ds.l    1                ; offset: $8 (8)
  796. fNewEnd                     ds.l    1                ; offset: $C (12)
  797. sizeof                     EQU *                    ; size:   $10 (16)
  798.                         ENDR
  799. ; typedef struct ReplaceRange *            ReplaceRangePtr
  800.  
  801. ReplaceRangeArray        RECORD 0
  802. fNumOfRanges             ds.l    1                ; offset: $0 (0)        ;  specify the size of the fRange array 
  803. fRange                     ds        ReplaceRange    ; offset: $4 (4) <-- really an array of length one ;  when fNumOfRanges > 1, the size of this array has to be calculated 
  804. sizeof                     EQU *                    ; size:   $14 (20)
  805.                         ENDR
  806. ; typedef struct ReplaceRangeArray *    ReplaceRangeArrayPtr
  807.  
  808. ;  Get Region specification 
  809. GetRegionRange            RECORD 0
  810. fRequestStart             ds.l    1                ; offset: $0 (0)
  811. fRequestEnd                 ds.l    1                ; offset: $4 (4)
  812. fTotalRangeStart         ds.l    1                ; offset: $8 (8)
  813. fTotalRangeEnd             ds.l    1                ; offset: $C (12)
  814. sizeof                     EQU *                    ; size:   $10 (16)
  815.                         ENDR
  816. ; typedef struct GetRegionRange *        GetRegionRangePtr
  817.  
  818. ClauseOffsetArray        RECORD 0
  819. fNumOfOffsets             ds.l    1                ; offset: $0 (0)        ;  specify the size of the fOffset array 
  820. fOffset                     ds.l    1                ; offset: $4 (4) <-- really an array of length one ;  when fNumOfOffsets > 1, the size of this array has to be calculated 
  821. sizeof                     EQU *                    ; size:   $8 (8)
  822.                         ENDR
  823. ; typedef struct ClauseOffsetArray *    ClauseOffsetArrayPtr
  824.  
  825.     ENDIF
  826.     ENDIF ; __AEREGISTRY__ 
  827.  
  828.